package com.mp.pojo.Query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author jack
 * @data 2019-08-21 20:39
 */
@Data
public class BetDetailQuery {
    @NotNull(message="下注内容不能为空")
    @ApiModelProperty(value = "下注内容", example = "1/单")
    private String name;

    @NotNull(message="注数不能为空")
    @ApiModelProperty(value = "注数", example = "2")
    @Digits(message="注数 只允许整数",integer = 4, fraction = 0)
    @DecimalMin(message="注数 不能低于1", value = "1")
    private BigDecimal amount;

}
